package com.blb.community.controller;


import com.blb.community.entity.vo.AreaVO;
import com.blb.community.service.ISysAreaService;
import com.blb.community.utils.ResponseResult;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * <p>
 * 区域表 前端控制器
 * </p>
 *
 * @author 帅帅
 * @since 2022-07-02
 */
@Api(tags = "小区地址")
@RestController
@RequestMapping("/sys-area")
public class SysAreaController {
    @Autowired
    private ISysAreaService areaService;
    @ApiOperation("小区地址信息")
    @GetMapping("/areas")
   public ResponseResult<List<AreaVO>> getAreaList(){
        List<AreaVO> area = areaService.getArea();
        return ResponseResult.ok(area);
    }


}
